home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / June 96 / Re Drop Outside Content View < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  1.0 KB  |  [TEXT/ttxt]

  1. Subject:     Re: Drop Outside Content View
  2. Sent:        6/25/96 9:25 AM
  3. Received:    6/25/96 9:43 AM
  4. From:        Henri Lamiraux, lamiraux@apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. >Dear ODF Team:
  9. >
  10. >When I drag something inside my part's frame, but not in the content view,
  11. >the drop occurs even though the drop feedback is off. Is this a bug or is
  12. >there something I should do to prevent that to happen?
  13. >
  14. >Serge
  15. >
  16.  
  17. Yes, this is a bug in ODF 1. The fix is easy, in FW_MDroppableFrame::Drop 
  18. replace the lines
  19.  
  20.  
  21. if (fPart->IsReadOnly(ev))
  22.    return dropResult;
  23.  
  24.  
  25. by
  26.  
  27.  
  28. if (fPart->IsReadOnly(ev) || !fCursorInContent)
  29.    return dropResult;
  30.  
  31.  
  32. ........................................................................
  33.  Henri Lamiraux                                      lamiraux@apple.com
  34.  Apple Computer, Inc.                 OpenDoc(tm) Development Framework
  35. ........................................................................
  36.  
  37.